//
//  WZHomeViewController.swift
//  weiBo---01
//
//  Created by 王—wagn on 16/4/6.
//  Copyright © 2016年 王—wagn. All rights reserved.
//

import UIKit

class WZHomeViewController: WZVistorViewController {

 
    //视图层次结构已经准备完毕
    override func viewDidLoad() {
        super.viewDidLoad()
        
        setUpUI()
    }
    
    private func setUpUI() {
    
        visitorView?.setUpViewController("关注一些人,回到这里看看有什么惊喜", imageName: "visitordiscover_feed_image_smallicon", isHome: true)
    
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action: "pushView")
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_friendsearch",target: self, action: "pushView")
    }
    
    @objc private func pushView() {
    
        print("pop ---home")
        let vc = WZTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    
    }

}
